#@layout()
<script>
    $("#taskscreenshot-edit").validate({
        rules:{
                "taskscreenshot.task_id":{
                    required:true
                },
                "taskscreenshot.fair_id":{
                    required:true
                },
                "taskscreenshot.create_time":{
                    required:true
                },
                "taskscreenshot.img":{
                    required:true
                }
        },
        messages:{

                "taskscreenshot.task_id":{
                required:"请输入任务id..."
                },
                "taskscreenshot.fair_id":{
                required:"请输入网红id..."
                },
                "taskscreenshot.create_time":{
                required:"请输入创建时间..."
                },
                "taskscreenshot.img":{
                required:"请输入截图地址..."
                }
        },
        onkeyup:false,
        focusCleanup:true,
        success:"valid",
        submitHandler:function(form){
        var config = {
        "url":"/admin/taskscreenshot/updateById",
        data:$("#taskscreenshot-edit").serialize(),
        "method":"POST"
        };
        var backendTool = new BackendTool(config);
        backendTool.ajaxRequest();
        }
    });
</script>
#define main()
    <form class="form form-horizontal" id="taskscreenshot-edit">
    #include("taskscreenshot-form.html")
    </form>
#end